package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 访问信息对象 visitor
 * 
 * @author 王帅
 * @date 2024-08-24
 */
public class Visitor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 访问人姓名 */
    @Excel(name = "访问人姓名")
    private String visitorName;

    /** 访问人电话 */
    @Excel(name = "访问人电话")
    private String visitorPhone;

    /** 访问原因 */
    @Excel(name = "访问原因")
    private String visitReason;

    /** 访问时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date visitTime;

    /** 离开时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离开时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date visitLeaveTime;

    /** 访问老人名称 */
    @Excel(name = "访问老人名称")
    private String oldManName;

    /** 访问老人id */
    private Long oldManId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setVisitorName(String visitorName) 
    {
        this.visitorName = visitorName;
    }

    public String getVisitorName() 
    {
        return visitorName;
    }

    public void setVisitorPhone(String visitorPhone) 
    {
        this.visitorPhone = visitorPhone;
    }

    public String getVisitorPhone() 
    {
        return visitorPhone;
    }

    public void setVisitReason(String visitReason) 
    {
        this.visitReason = visitReason;
    }

    public String getVisitReason() 
    {
        return visitReason;
    }

    public void setVisitTime(Date visitTime) 
    {
        this.visitTime = visitTime;
    }

    public Date getVisitTime() 
    {
        return visitTime;
    }

    public void setVisitLeaveTime(Date visitLeaveTime) 
    {
        this.visitLeaveTime = visitLeaveTime;
    }

    public Date getVisitLeaveTime() 
    {
        return visitLeaveTime;
    }

    public void setOldManName(String oldManName) 
    {
        this.oldManName = oldManName;
    }

    public String getOldManName() 
    {
        return oldManName;
    }

    public void setOldManId(Long oldManId) 
    {
        this.oldManId = oldManId;
    }

    public Long getOldManId() 
    {
        return oldManId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("visitorName", getVisitorName())
            .append("visitorPhone", getVisitorPhone())
            .append("visitReason", getVisitReason())
            .append("visitTime", getVisitTime())
            .append("visitLeaveTime", getVisitLeaveTime())
            .append("oldManName", getOldManName())
            .append("oldManId", getOldManId())
            .toString();
    }
}
